﻿@model ShoppingCart.Domain.Entities.Product

@{
    ViewBag.Title = "Admin: Edit " + @Model.Name;
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h1>Edit @Model.Name</h1>

@using (Html.BeginForm("Edit", "Admin", FormMethod.Post, 
    new { enctype = "multipart/form-data" })) {
    
    @Html.EditorForModel()

    <input type="submit" value="Save" />
    @Html.ActionLink("Cancel and return to List", "Index")
}